package bit.lotterysystem.service;


import bit.lotterysystem.controller.param.DrawPrizeParam;
import bit.lotterysystem.controller.param.ShowWinningRecordsParam;
import bit.lotterysystem.dao.dataobject.WinningRecordDO;
import bit.lotterysystem.service.dto.WinningRecordDTO;

import java.util.List;

public interface DrawPrizeService {

    /**
     * 异步抽奖接口
     * @param param
     */
    void drawPrize(DrawPrizeParam param);

    /**
     * 校验抽奖请求
     * @param param
     */
    Boolean checkDrawPrizeParam(DrawPrizeParam param);

    /**
     * 保存中奖者名单
     * @param param
     */
    List<WinningRecordDO> saveWinnerRecords(DrawPrizeParam param);

    /**
     * 删除活动奖品下的中奖记录
     * @param activity
     * @param prizeId
     */
    void deleteRecords(Long activity,Long prizeId);

    List<WinningRecordDTO> getRecords(ShowWinningRecordsParam param);
}
